<%@page	import="model.User" 
	import="model.Sensor" 
	import="java.util.ArrayList"
	import="model.Roll"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
		<title>INTI3E Prototype</title>
		<link rel="stylesheet" href="layout.css" type="text/css" />
		<jsp:include page="includes/initialize.jsp"  flush="true" />  
	</head>
	<body>
		<%
		ArrayList<Sensor> sensors = (ArrayList<Sensor>)request.getAttribute("sensors");
		%>
		<jsp:include page="includes/menu.jsp"  flush="true" />
		&nbsp;
		<div id="wrapper">
			<div id="warning">
				<label id="warningKop">Wijzig maximum waarden </label>
				<label id="warningLeft">
					Door de maximumwaarden te zetten, worden er waarschuwingsmeldingen gegeven
					als de sensor deze waarden overschrijd 
				</label><br><br><br>
				<form name="input" action="WarningServlet?page=update" method="post">
					<label id="warningLeft">Temperatuur</label>
			 		<input type="text" name="tempmax" id="warningRight" value="<%=sensors.get(3).getMaxValue()%>" /><br />
			 		<br><label id="warningLeft">Luchtvochtigheid</label>
			 		<input type="text" name="luchtmax" id="warningRight" value="<%=sensors.get(4).getMaxValue()%>"/><br />
					<br><input type="submit" id="addUser-button" value="verstuur" />
				</form> 
			</div>
		</div>
		<jsp:include page="includes/footer.jsp"  flush="true" />
	</body>
</html>